<?php 
class Controller{
	/**
	 * 成功提示方法
	 */
	protected function success($msg,$url){
		$str = <<<str
	<script type="text/javascript">
		alert("{$msg}");
		location.href="{$url}"; 			
	</script>
str;
		die($str);
	}
	
	protected function error($msg){
		$str = <<<str
	<script type="text/javascript">
		alert("{$msg}");
		history.back(); 			
	</script>
str;
	echo $str;
	}
	
	
	
	
	
	
	
	
	
	
}


 ?>